import request from '@/utils/request'

// 查询ID-08 保健品数据库列表
export function listBao_jian_pin(query) {
  return request({
    url: '/admin/bao_jian_pin/list',
    method: 'get',
    params: query
  })
}

// 查询ID-08 保健品数据库详细
export function getBao_jian_pin(id) {
  return request({
    url: '/admin/bao_jian_pin/' + id,
    method: 'get'
  })
}

// 新增ID-08 保健品数据库
export function addBao_jian_pin(data) {
  return request({
    url: '/admin/bao_jian_pin',
    method: 'post',
    data: data
  })
}

// 修改ID-08 保健品数据库
export function updateBao_jian_pin(data) {
  return request({
    url: '/admin/bao_jian_pin',
    method: 'put',
    data: data
  })
}

// 删除ID-08 保健品数据库
export function delBao_jian_pin(id) {
  return request({
    url: '/admin/bao_jian_pin/' + id,
    method: 'delete'
  })
}

// 审核
export function to_examine(id,shenHe) {
    const data = {id, shenHe}
  return request({
    url: '/admin/bao_jian_pin/examine',
    method: 'put',
    data:data
  })
}

